﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MeetingEx.aspx.cs" Inherits="JoinParty.admin.FlowStep.MeetingEx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <script src="../../../../Resource/ueditor/ueditor.config.js"></script>
    <script src="../../../../Resource/ueditor/ueditor.all.min.js"></script>
</head>
<body>
    <form id="_form1" runat="server">
        <f:PageManager ID="PageManager1" runat="server" />
        <f:Panel runat="server" ID="_panle">
            <Items>
                <f:Form ID="form2" MessageTarget="Qtip" BodyPadding="5px" ShowBorder="false" ShowHeader="false" runat="server">
                    <Items>
                        <f:Panel ID="panel10" ShowBorder="false" CssClass="formitem" ShowHeader="false" Layout="Column" runat="server" BodyPadding="5px">
                            <Items>
                                <f:Label ID="lbWorkPoint" runat="server" Label="工作指引" LabelAlign="right" LabelWidth="120px" EncodeText="false" Width="650px"></f:Label>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel2" ShowHeader="false" CssClass="formitem" ShowBorder="false" Layout="Column" runat="server" BodyPadding="5px">
                            <Items>
                                <f:NumberBox ID="txtAllMember" runat="server" Label="本支部共有党员" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="lb1" runat="server" Text="人"></f:Label>

                                <f:NumberBox ID="txtMemberShouldBeTo" runat="server" Label="应出席人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label1" runat="server" Text="人"></f:Label>

                                <f:NumberBox ID="txtMemberIsTo" runat="server" Label="实际出席人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label2" runat="server" Text="人"></f:Label>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="Panel3" ShowHeader="false" CssClass="formitem" ShowBorder="false" Layout="Column" runat="server" BodyPadding="5px">
                            <Items>
                                <f:NumberBox ID="txtMemberAgree" runat="server" Label="同意人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label3" runat="server" Text="人"></f:Label>

                                <f:NumberBox ID="txtMemberWaiver" runat="server" Label="弃权人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label4" runat="server" Text="人"></f:Label>

                                <f:NumberBox ID="txtMemberDisAgree" runat="server" Label="不同意人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label5" runat="server" Text="人"></f:Label>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="panel4" runat="server" CssClass="formitem" ShowBorder="false" Layout="Column" BodyPadding="5px">
                            <Items>
                                <f:DropDownList ID="ddlMemberState" runat="server" Label="状态" LabelAlign="right" LabelWidth="120px">
                                    <f:ListItem Text="通过" Value="0" EnableSelect="true" />
                                    <f:ListItem Text="不通过" Value="1" />
                                </f:DropDownList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="panel5" runat="server" CssClass="formitem" ShowBorder="false" Layout="Column" BodyPadding="5px">
                            <Items>
                                <f:NumberBox ID="txtAllPeople" runat="server" Label="本支部共有群众" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label6" runat="server" Text="人"></f:Label>

                                <f:NumberBox ID="txtPeopleShouldBeTo" runat="server" Label="应出席人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label7" runat="server" Text="人"></f:Label>

                                <f:NumberBox ID="txtPeopleIsTo" runat="server" Label="实际出席人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label8" runat="server" Text="人"></f:Label>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="panel6" runat="server" CssClass="formitem" ShowBorder="false" Layout="Column" BodyPadding="5px">
                            <Items>
                                <f:NumberBox ID="txtPeopleAgree" runat="server" Label="同意人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label9" runat="server" Text="人"></f:Label>

                                <f:NumberBox ID="txtPeopleWaiver" runat="server" Label="弃权人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label10" runat="server" Text="人"></f:Label>

                                <f:NumberBox ID="txtPeopleDisAgree" runat="server" Label="不同意人数" LabelWidth="120px" Width="220px" LabelAlign="right" ShowRedStar="true" Required="true"></f:NumberBox>
                                <f:Label ID="Label11" runat="server" Text="人"></f:Label>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="panel7" runat="server" CssClass="formitem" ShowBorder="false" Layout="Column" BodyPadding="5px">
                            <Items>
                                <f:DropDownList ID="ddlPeopleState" runat="server" Label="状态" LabelAlign="right" LabelWidth="120px">
                                    <f:ListItem Text="通过" Value="0" EnableSelect="true" />
                                    <f:ListItem Text="不通过" Value="1" />
                                </f:DropDownList>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="panel8" runat="server" CssClass="formitem" ShowBorder="false" Layout="Column" BodyPadding="5px">
                            <Items>
                                <f:DatePicker ID="dtMeetingTime" runat="server" Label="会议时间" LabelAlign="right" LabelWidth="120px"></f:DatePicker>
                            </Items>
                        </f:Panel>
                        <f:Panel ID="panel9" runat="server" CssClass="formitem" ShowBorder="false" Layout="Column" BodyPadding="5px">
                            <Items>
                                <%--<f:HtmlEditor ID="heMeetingContent" runat="server" Label="会议内容" LabelAlign="right" LabelWidth="120px"></f:HtmlEditor>--%>
                                <f:Label ID="lbMeetingContent" runat="server" LabelAlign="right" Text="会议内容" ShowRedStar="true"></f:Label>
                                <f:ContentPanel ID="cpMeetingContent" runat="server" ShowBorder="false" ShowHeader="false" Title="baad">
                                    <script type="text/plain" id="editor"></script>
                                </f:ContentPanel>
                            </Items>
                        </f:Panel>

                    </Items>
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" runat="server" Position="Bottom" ToolbarAlign="Center">
                            <Items>
                                <f:Button ID="btnSaveClose" ValidateForms="form2" Icon="SystemSaveClose" OnClick="btnSaveClose_Click"
                                    runat="server" Text="保存并关闭">
                                </f:Button>
                                <f:Button ID="btnSubmit" ValidateForms="form2" runat="server" CssClass="marginr" OnClick="btnSubmit_Click" Icon="Tick"
                                    Text="提交">
                                </f:Button>
                                <f:Button ID="btnClose" Icon="SystemClose" EnablePostBack="false" runat="server"
                                    Text="关闭">
                                </f:Button>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                </f:Form>

            </Items>
        </f:Panel>
    </form>
</body>
</html>
<script>
    var containerClientID = '<%= form2.ClientID %>';
    var editor1;
    var config = {
        initialFrameWidth: '98%',
        initialFrameHeight: '400px',
        enableAutoSave: false,
        saveInterval: 1000000,
        elementPathEnabled: false,
        autoHeightEnabled: false,
        autoFloatEnabled: false,
        onready: function () {
        }
    };
    F.ready(function () {
        config.onready = function () {
            // 重新布局外部容器
            doLayout();
            updateEditor1('<%= this.MeetingContent%>');
        }
        editor1 = UE.getEditor('editor', config);

    });

    // 更新编辑器内容
    function updateEditor1(content) {
        if (editor1 && editor1.isReady) {
            editor1.setContent(content);
        }
    }
    function doLayout() {
        if ((editor1 && editor1.isReady)) {
            // 重新布局外部容器
            F(containerClientID).doLayout();
        }
    }
</script>
